<%--
  Created by IntelliJ IDEA.
  User: wqe
  Date: 2024/1/14
  Time: 14:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
${pageInfo.list}
<table border="1" width="500" style="text-align: center">
    <tr>
        <td>id</td>
        <td>username</td>
        <td>password</td>
        <td>sex</td>
    </tr>
    <c:forEach items="${users}" var="user">
        <tr>
            <td>${user.id}</td>
            <td>${user.username}</td>
            <td>${user.password}</td>
            <td>${user.sex}</td>
        </tr>
    </c:forEach>
</table>

<a href="/user/getallusers?page=${pageInfo.pageNum-1}">上一页</a>
<a href="/user/getallusers?page=${pageInfo.pageNum+1}">下一页</a>

</body>
</html>
